<?php
/**
 * Created by PhpStorm.
 * User: Victor
 * Date: 2018/11/15
 * Time: 17:16
 */
$startTime = date('Y-m-d 00:00:00',time());
$endTime = date('Y-m-d 23:59:59',time());
$startTime = '2018-10-10';
$url = 'http://merchant.yes-pay.cn/merchant/searchorders.do';
$postdata = "device=all&orderId=&start=$startTime&end=$endTime&total_fee=&orderStatus=1&orderType=all&shopId=11f056b66a864f23af5397c310186150";
$options = array(
    'http' => array(
        'method' => 'POST',
        'header' => 'Content-type:application/x-www-form-urlencoded; charset=UTF-8',
        'content' => $postdata,
        'timeout' => 15 * 60 // 超时时间（单位:s）
    )
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
echo  $result;